package com.xiqin.microserviceservice.system.impl;

import com.xiqin.microservicebean.system.SystemUser;
import com.xiqin.microservicedao.system.SystemUserMapper;
import com.xiqin.microserviceservice.base.BaseServiceImpl;
import com.xiqin.microserviceservice.system.SystemUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author TaoQiansheng
 * @Date 2020-04-29 16:07
 * @Version 1.0
 */
@Service
@Slf4j
public class SystemUserServiceImpl extends BaseServiceImpl<SystemUser> implements SystemUserService {
    @Autowired
    private SystemUserMapper systemUserMapper;

    @Override
    public SystemUser selectByPrimaryKey(Integer id) {
        return systemUserMapper.selectByPrimaryKey(id);
    }
    @Override
    public SystemUser loadUserByUserName(String userName) {
        return systemUserMapper.loadUserByUserName(userName);
    }
}
